import { privateRequest } from '@/utils/request';
import type { IUser, IUserInfo } from './type';

enum API {
	// 登录
	Login = '/login',
}

export const useLogin = (user: IUser) => privateRequest.post<IUserInfo>(API.Login, user);
